package com.our.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.our.dao.ReportTypesMapper;
import com.our.model.ReportTypes;
import com.our.util.BusinessException;

/**
 * @author szq
 *
 */
@Service
public class ReportTypesBiz {
	@Resource
	private ReportTypesMapper dao;
	
	public List<ReportTypes> selectAll() throws BusinessException{
		try {
			return dao.selectAll();		
		} catch (Exception e) {
			throw new BusinessException("E0301B07");
		}
	}
	
	public ReportTypes selectByPrimaryKey(int typeId) throws BusinessException{
		try {
			return dao.selectByPrimaryKey(typeId);	
		} catch (Exception e) {
			throw new BusinessException("E0301B06");
		}
	}
	

}
